package com.edu.bean;
/*
 * @Author:princess
 * @Date 2023/10/24 10 24 18:46
 *
 */

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;

/*
    容器后置处理器，用于对spring容器 进行增强
        1.实现 BeanFactoryPostProcessor
        2.重写方法 postProcessBeanFactory
        3.把该对象放到容器
 */
public class MyFactoryPostProcesser implements BeanFactoryPostProcessor {

    public void postProcessBeanFactory(ConfigurableListableBeanFactory configurableListableBeanFactory) throws BeansException {
        System.out.println("执行了容器后置处理器的方法");
    }
}
